/*
 * @Author: spark
 * @Date: 2021-06-21 14:07:47
 * @LastEditTime: 2021-06-24 14:52:26
 * @LastEditors: spark
 * @Description: 一个持续与bug做抗争的程序员
 * email: spark.xiaoyu@qq.com
 */

import { Store as VuexStore, DispatchOptions, CommitOptions, Module } from 'vuex'
import { state, PermissionState } from './state'
import { mutations, Mutations } from './mutations'
import { actions, Actions } from './actions'
import { RootState } from '@/store';

export type PermissionStore<S = PermissionState> = VuexStore<S>

export const store: Module<PermissionState, RootState> = {
    state,
    mutations,
    actions,
    namespaced: true
}
